package com.guyaogg.gulimall.order.feign;

import com.guyaogg.gulimall.order.vo.MemberAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 顾遥
 */
@FeignClient("gulimall-member")
@RequestMapping("member")
public interface MemberFeignService {

    @GetMapping("/memberreceiveaddress/{memberId}/addresses")
    List<MemberAddressVO> getAddresses(@PathVariable("memberId") Long memberId);
}
